package com.ruoyi.student.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学生管理对象 qcl_student
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@TableName(value = "qcl_student")
@Data
public class Student extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID 编号
     */
    @Excel(name = "ID 编号")
    private Long id;

    /**
     * 学生名字
     */
    @Excel(name = "学生名字")
    private String stuName;

    /**
     * 学生家长名字
     */
    @Excel(name = "学生家长名字")
    private String stuPatriarchName;

    /**
     * 学生家长电话
     */
    @Excel(name = "学生家长电话")
    private String stuPatriarchPhone;

    /**
     * 所属班级
     */
    @Excel(name = "所属班级")
    private String stuClass;

    /**
     * 所属学校
     */
    @Excel(name = "所属学校")
    private String stuSchool;

    /**
     * 学生状态
     */
    @Excel(name = "学生状态", readConverterExp = "1=正常,0=不正常")
    private String stuStatus;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=存在,2=删除")
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuPatriarchName() {
        return stuPatriarchName;
    }

    public void setStuPatriarchName(String stuPatriarchName) {
        this.stuPatriarchName = stuPatriarchName;
    }

    public String getStuPatriarchPhone() {
        return stuPatriarchPhone;
    }

    public void setStuPatriarchPhone(String stuPatriarchPhone) {
        this.stuPatriarchPhone = stuPatriarchPhone;
    }

    public String getStuClass() {
        return stuClass;
    }

    public void setStuClass(String stuClass) {
        this.stuClass = stuClass;
    }

    public String getStuSchool() {
        return stuSchool;
    }

    public void setStuSchool(String stuSchool) {
        this.stuSchool = stuSchool;
    }

    public String getStuStatus() {
        return stuStatus;
    }

    public void setStuStatus(String stuStatus) {
        this.stuStatus = stuStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("stuName", getStuName())
                .append("stuPatriarchName", getStuPatriarchName())
                .append("stuPatriarchPhone", getStuPatriarchPhone())
                .append("stuClass", getStuClass())
                .append("stuSchool", getStuSchool())
                .append("stuStatus", getStuStatus())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
